package com.project.common.controller;

import com.project.common.entity.SysUser;
import com.project.common.service.SysUserService;
import org.omg.CORBA.PRIVATE_MEMBER;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/sysUser")
@CrossOrigin
public class SysUserController {
    @Autowired
    private SysUserService sysUserService;
    @GetMapping("/queryDoctor")
    public List<SysUser> queryDoctor(){
        return sysUserService.queryDoctorInfo();
    }
}
